//
//  TACP_ImageArray.m
//  AutoCreatePropertyDemo
//
// Created by userName on 2017/11/30.
//  Copyright © 2017年 __MyCompanyName__ All rights reserved.
//

#import "TACP_ImageArray.h"

@implementation TACP_ImageArray

- (instancetype)initWithDictionary:(NSDictionary *)dict {
    self = [super initWithDictionary:dict];
    if (self) {
        self.img = not_null_obj_from_dict_with_key(dict, @"img");

        self.values = [self arrayFromDatasource:not_null_obj_from_dict_with_key(dict, @"values") subClassName:@""];

    }
    return self;
}

//请不要动此方法，否则再次生成时无法添加正确的解析字符串
+ (NSString *)description {
    NSString *string = @"WyAgeyAgICAiY2xhc3NOYW1lIiA6ICJOU1N0cmluZyIsICAgICJwcm9wZXJ0eU5hbWUiIDogImltZyIgIH0sICB7ICAgICJjbGFzc05hbWUiIDogIk5TQXJyYXkiLCAgICAicHJvcGVydHlOYW1lIiA6ICJ2YWx1ZXMiLCAgICAic3ViTW9kZWwiIDogeyAgICAgICJjbGFzc05hbWUiIDogIk5TTnVtYmVyIiwgICAgICAicHJvcGVydHlOYW1lIiA6ICJ2YWx1ZXMiICAgIH0gIH1d";
    NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:string options:0];
    NSString *decodedString = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];
    return decodedString;
}


@end